<%-- 
    Document   : ActualizarCarrera
    Created on : 03-ene-2012, 3:03:31
    Author     : Hades
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <title>Actualizar Carrera</title>
        <script language="JavaScript" type="text/javascript" src="js/jquery-1.7.1.js">
        </script>
        <script language="JavaScript" type="text/javascript" src="js/jquery.validate.js">
        </script>
        <script language="JavaScript" type="text/javascript" src="js/jquery.maskedinput-1.3.js">
        </script>
        <script>
         $(document).ready(function(){
         $("#formulario").validate(
          {
              rules:{identificador:{required:true},descripcion:"required"},
              messages:{identificador:"Ingrese ID de la carrera",descripcion:"Ingrese Descripcion de la Carrera"}
          }
        )
         });
         </script>
         <!-- 
         Script que utiliza mascaras de JQuery para validar
         -->
        <script type="text/javascript"> 
        jQuery(function($){ 
            

        $("#idCarrera").mask("999?9"); 
        $.mask.definitions['*']='[ ,a-z,A-Z,0-9]';
        $("#descripcion").mask("aa*****?******************************************"); 
         
        }); 
        </script>
       
    </head>
    <body>
        <form id="formulario" name="formulario" method="post" action="updateCarreraServlet">
        <table align="center">
            <tr>
                <td colspan="2" align="center"><h1>Actualizar Datos de Carrera<h1></td>
            </tr>
            <tr>
                <td>ID de Carrera</td>
                <td>
                     <select class="required" id="identificacor" name="identificador"> 
                     <option value="">Selecciona</option>
                     <option value="100">100</option> 
                     <option value="101">101</option>
                     <option value="102">102</option>
                     <option value="103">103</option>
                     <option value="104">104</option>
                     <option value="105">105</option>
                     </select>
                </td>
            </tr>
            <tr>
                <td>Descripcion</td>
                <td><input type="text" id="descripcion" name="descripcion" class="required"/></td>
            </tr>
            <tr>
                 <td colspan="2" align="center"><input type="submit" value="enviar" /></td>
             </tr>
        </table>
         </form>
        
    </body>
</html>

